'''
if
if ... else
if ... elif ... else
match ... case
'''
from nis import match

# python 3.10+
# DeprecationWarning: 'nis' is deprecated and slated for removal in Python 3.13 from nis import match
# 以上两个信息：1.13模块编程.12package，3.10+版本开始引入使用；2，nis模块被弃用，3.13版本将移除该模块
command = 'ls'
match command:
    case 'ls':
        print('list')
    case 'cd':
        print('change directory')
    case 'pwd':
        print('print working directory')

